let obj = {
    name: 'zhangsan',
    age: 18,
    like: {
        a: '唱',
        b: '跳',
        c: 'rap'
    },
    a: undefined,
    b: null,
    c: function () {
        console.log('我是一个函数')
    },
    // d: 123n
}

let obj2 = JSON.stringify(obj)
let obj3 = JSON.parse(obj2)
obj3.like.d = '篮球'
console.log(obj)
console.log(obj2)
console.log(obj3)